﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mycourse.aspx.cs" Inherits="EmProductCenter.user.mycourse" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我的课程</title>
    <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../js/main.js" type="text/javascript"></script>
    <script src="../js/login.js" type="text/javascript"></script>
</head>
<body>
    <a href='mycourse.aspx?id=<%=Encrypt("和") %>'>点击</a>
    <input type="text" id="text1" />
    <button id="button1">
        编码</button><br />
    <input type="text" id="text2" />
    <button id="button2">
        不编码</button><br />
    <script type="text/javascript">
        $("button1").onclick = function () {
            SetCookie("key1", $("text1").value, 1, true);
        }

        window.onload = function () {
            $("text1").value = GetCookie("key1", true);
            $("text2").value = GetCookie("key2", false);
            $("ta").value = document.cookie;
        }

        $("button2").onclick = function () {
            SetCookie("key2", $("text2").value, 1, false);
        }
    </script>
</body>
</html>
